package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 jifen_points_transaction
 * 
 * @author ruoyi
 * @date 2025-05-14
 */
public class JifenPointsTransaction extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long txId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long userId;

    /** 1获取 2消费 3转移 */
    @Excel(name = "1获取 2消费 3转移")
    private Long txType;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long points;

    /** 交易后余额 */
    @Excel(name = "交易后余额")
    private Long balanceAfter;

    /** 业务类型:ORDER/ACTIVITY/EXCHANGE */
    @Excel(name = "业务类型:ORDER/ACTIVITY/EXCHANGE")
    private String bizType;

    /** 关联业务ID */
    @Excel(name = "关联业务ID")
    private String bizId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Date txTime;

    public void setTxId(Long txId) 
    {
        this.txId = txId;
    }

    public Long getTxId() 
    {
        return txId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setTxType(Long txType) 
    {
        this.txType = txType;
    }

    public Long getTxType() 
    {
        return txType;
    }

    public void setPoints(Long points) 
    {
        this.points = points;
    }

    public Long getPoints() 
    {
        return points;
    }

    public void setBalanceAfter(Long balanceAfter) 
    {
        this.balanceAfter = balanceAfter;
    }

    public Long getBalanceAfter() 
    {
        return balanceAfter;
    }

    public void setBizType(String bizType) 
    {
        this.bizType = bizType;
    }

    public String getBizType() 
    {
        return bizType;
    }

    public void setBizId(String bizId) 
    {
        this.bizId = bizId;
    }

    public String getBizId() 
    {
        return bizId;
    }

    public void setTxTime(Date txTime) 
    {
        this.txTime = txTime;
    }

    public Date getTxTime() 
    {
        return txTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("txId", getTxId())
            .append("userId", getUserId())
            .append("txType", getTxType())
            .append("points", getPoints())
            .append("balanceAfter", getBalanceAfter())
            .append("bizType", getBizType())
            .append("bizId", getBizId())
            .append("txTime", getTxTime())
            .toString();
    }
}
